package com.bos.dao.repositories;

import com.bos.domian.base.Courier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author misterWei
 * @create 2018年11月13号:09点30分
 * @mailbox mynameisweiyan@gmail.com
 */
public interface CourierRepository extends JpaRepository<Courier,Integer>,JpaSpecificationExecutor<Courier>{
    @Query(value = "update Courier set deltag=?2 where id=?1")
    @Modifying
    void delBatchOrStart(Integer id, Object o);
}
